  /**
   * Generate time : 2012-06-28 7:29:12
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ct.domain;

import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCTSms 
 *  
 */
public class ZMCTSms extends DaoEPBase {

	private String fdKeyId = " ";		/* FD_KEY_ID*/
	private String fdNo = " ";		/* 工号*/
	private String fdName = " ";		/* 姓名*/
	private String fdMobilePhone = " ";		/* 手机号码*/
	private String fdSmsContent = " ";		/* 短信内容*/
	private String fdStatus = " ";		/* 发送状态*/
	private String fdCreateTime = " ";		/* 生成时间*/
	private String fdSendTime = " ";		/* 发送时间*/
	private String fdModelId = " ";		/* 短信模板ID*/
	private String fdIsTemporary = " ";		/* 是否为临时人员*/
	private String fdPlanSendTime = " ";		/* 预计发送时间*/

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("fdKeyId");
	eiColumn.setPrimaryKey(true);
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("FD_KEY_ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdNo");
	eiColumn.setFieldLength(300);	
	eiColumn.setDescName("工号");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdName");
	eiColumn.setFieldLength(300);	
	eiColumn.setDescName("姓名");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMobilePhone");
	eiColumn.setFieldLength(300);	
	eiColumn.setDescName("手机号码");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSmsContent");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName("短信内容");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(15);	
	eiColumn.setDescName("发送状态");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdCreateTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("生成时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSendTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("发送时间");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdModelId");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("短信模板ID");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdIsTemporary");
	eiColumn.setFieldLength(32);	
	eiColumn.setDescName("是否为临时人员");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdPlanSendTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName("预计发送时间");
	eiMetadata.addMeta(eiColumn);
	

	}
	/**
	 * the constructor
	 */
	public ZMCTSms() {
		initMetaData();
	}
	
	/**
	 * get the fdKeyId - FD_KEY_ID
	 * @return the fdKeyId
	 */
	public String getFdKeyId() {
		return this.fdKeyId;
	}
	
	/**
	 * set the fdKeyId - FD_KEY_ID
	 */
	public void setFdKeyId(String fdKeyId) {
		this.fdKeyId = fdKeyId;
	}
	
	/**
	 * get the fdNo - 工号
	 * @return the fdNo
	 */
	public String getFdNo() {
		return this.fdNo;
	}
	
	/**
	 * set the fdNo - 工号
	 */
	public void setFdNo(String fdNo) {
		this.fdNo = fdNo;
	}
	
	/**
	 * get the fdName - 姓名
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}
	
	/**
	 * set the fdName - 姓名
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}
	
	/**
	 * get the fdMobilePhone - 手机号码
	 * @return the fdMobilePhone
	 */
	public String getFdMobilePhone() {
		return this.fdMobilePhone;
	}
	
	/**
	 * set the fdMobilePhone - 手机号码
	 */
	public void setFdMobilePhone(String fdMobilePhone) {
		this.fdMobilePhone = fdMobilePhone;
	}
	
	/**
	 * get the fdSmsContent - 短信内容
	 * @return the fdSmsContent
	 */
	public String getFdSmsContent() {
		return this.fdSmsContent;
	}
	
	/**
	 * set the fdSmsContent - 短信内容
	 */
	public void setFdSmsContent(String fdSmsContent) {
		this.fdSmsContent = fdSmsContent;
	}
	
	/**
	 * get the fdStatus - 发送状态
	 * @return the fdStatus
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the fdStatus - 发送状态
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}
	
	/**
	 * get the fdCreateTime - 生成时间
	 * @return the fdCreateTime
	 */
	public String getFdCreateTime() {
		return this.fdCreateTime;
	}
	
	/**
	 * set the fdCreateTime - 生成时间
	 */
	public void setFdCreateTime(String fdCreateTime) {
		this.fdCreateTime = fdCreateTime;
	}
	
	/**
	 * get the fdSendTime - 发送时间
	 * @return the fdSendTime
	 */
	public String getFdSendTime() {
		return this.fdSendTime;
	}
	
	/**
	 * set the fdSendTime - 发送时间
	 */
	public void setFdSendTime(String fdSendTime) {
		this.fdSendTime = fdSendTime;
	}
	
	/**
	 * get the fdModelId - 短信模板ID
	 * @return the fdModelId
	 */
	public String getFdModelId() {
		return this.fdModelId;
	}
	
	/**
	 * set the fdModelId - 短信模板ID
	 */
	public void setFdModelId(String fdModelId) {
		this.fdModelId = fdModelId;
	}
	
	/**
	 * get the fdIsTemporary - 是否为临时人员
	 * @return the fdIsTemporary
	 */
	public String getFdIsTemporary() {
		return this.fdIsTemporary;
	}
	
	/**
	 * set the fdIsTemporary - 是否为临时人员
	 */
	public void setFdIsTemporary(String fdIsTemporary) {
		this.fdIsTemporary = fdIsTemporary;
	}
	
	/**
	 * get the fdPlanSendTime - 生成和发送时间位次
	 * @return the fdPlanSendTime
	 */
	public String getfdPlanSendTime() {
		return this.fdPlanSendTime;
	}
	
	/**
	 * set the fdPlanSendTime - 生成和发送时间位次
	 */
	public void setfdPlanSendTime(String fdPlanSendTime) {
		this.fdPlanSendTime = fdPlanSendTime;
	}
	
	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setFdKeyId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdKeyId")), fdKeyId));
		setFdNo(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdNo")), fdNo));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdMobilePhone(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMobilePhone")), fdMobilePhone));
		setFdSmsContent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSmsContent")), fdSmsContent));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));
		setFdCreateTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdCreateTime")), fdCreateTime));
		setFdSendTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendTime")), fdSendTime));
		setFdModelId(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdModelId")), fdModelId));
		setFdIsTemporary(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdIsTemporary")), fdIsTemporary));
		setfdPlanSendTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdPlanSendTime")), fdPlanSendTime));
	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("fdKeyId",StringUtils.toString(fdKeyId, eiMetadata.getMeta("fdKeyId")));	
			map.put("fdNo",StringUtils.toString(fdNo, eiMetadata.getMeta("fdNo")));	
			map.put("fdName",StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));	
			map.put("fdMobilePhone",StringUtils.toString(fdMobilePhone, eiMetadata.getMeta("fdMobilePhone")));	
			map.put("fdSmsContent",StringUtils.toString(fdSmsContent, eiMetadata.getMeta("fdSmsContent")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			map.put("fdCreateTime",StringUtils.toString(fdCreateTime, eiMetadata.getMeta("fdCreateTime")));	
			map.put("fdSendTime",StringUtils.toString(fdSendTime, eiMetadata.getMeta("fdSendTime")));	
			map.put("fdModelId",StringUtils.toString(fdModelId, eiMetadata.getMeta("fdModelId")));	
			map.put("fdIsTemporary",StringUtils.toString(fdIsTemporary, eiMetadata.getMeta("fdIsTemporary")));	
			map.put("fdPlanSendTime",StringUtils.toString(fdPlanSendTime, eiMetadata.getMeta("fdPlanSendTime")));	
			
		return map;
	
	}
}